<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>大成健康产业集团</title>
  <meta name="viewport"
    content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta name="keywords" content="大成健康产业集团">
  <meta name="description" content="大成健康产业集团">
  <link rel="shortcut icon" href="favicon.ico">
  <link href="/static/customer/css/laykefu.css" rel="stylesheet" type="text/css" />
</head>

<body>
  <!-- 右侧悬浮 -->
  <div class="laykefu-min " id="show-laykefu">咨询客服</div>
  <!-- 右侧悬浮 -->

  <script src="https://cdn.staticfile.org/jquery/2.1.4/jquery.min.js"></script>
  <script src="/static/customer/js/reconnecting-websocket.js"></script>
  <script src="/static/customer/js/laykefu.js?t={:time()}"></script>
  
  <script type="text/javascript">
    var host = document.domain;
    laykefu.init({
      group: 1,//客服分组
      socket: "{$Think.config.socket}",//聊天服务器地址
      face_path: '/static/customer/images/face',//表情包路径
      upload_url: "{:url('/index/upload/uploadImg', '', '', true)}",//图片上传路径
      chatlog_url: "{:url('userChatLog',['id' => $user['id']],'html', true)}",//聊天记录路径
      uid: "{$user['id']}",
      name: "{$user['name']?:$user['nickname']}",
      avatar: "{$user['headimgurl']}",
    });
    //一进来就直接点咨询客服
    var e = document.createEvent("MouseEvents");
    e.initEvent("click", true, true);
    document.getElementById("show-laykefu").dispatchEvent(e);
  </script>
</body>

</html>